/**
 * Created by wenju on 2016/11/22.
 */
$(document).ready(function () {
    var pbd = $(".prompt-box-div").outerHeight(true);
    var ib = $(".index-banner").height();
    var foot_h = $("footer").height();
    var head_h = $("header").height();
    function warr() {
        var jwindow = $(window).height();
        var j_cd = $(".content-div").height();
        var hh = jwindow-ib-foot_h-head_h;
        if (j_cd>hh||pbd>hh) {
            $("footer").removeClass("new-footer");
        }else {
            $("footer").addClass("new-footer");
        }
    }
    warr();
    $(window).resize(function () {
        warr();
    });

    $(".content-div").resize(function () {
        warr();
    })
});
